<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航栏</title>
    <!--引入样式-->
    <link rel="stylesheet" href="plugins/vue-2.7/elementUI/theme-chalk/index.css">
</head>
<body>
<div id="sideBar">
    <demo></demo>
</div>
</body>
<!--引入组件库-->
<script src="plugins/vue-2.7/vue.min.js"></script>
<script src="plugins/vue-2.7/elementUI/index.js"></script>
<script src="plugins/httpVueLoader.js"></script>
</html>
<script>
    new Vue({
        el: '#sideBar',
        components: {
            'demo':httpVueLoader('./views/sideBar.vue')
        }
    })
</script>